package QL;

import java.util.Map;

public class ButlerGuildGetListRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 第几页？
    /// </summary>
    public long PageIndex;

    /// <summary>
    /// 每页多少人？
    /// </summary>
    public long PageCount;

    /// <summary>
    /// 排序字段
    /// 0公会Id 1公会等级 2公会人数 3创建时间 4公会红包实时额度 5会长福利实时额度 6显示级别
    /// </summary>
    public long FilterField;

    /// <summary>
    /// 1降序 2升序
    /// </summary>
    public long FilterType;

    /// <summary>
    /// 显示类型 -1显示全部 0显示默认 1已屏蔽 2已上榜 3已置顶
    /// </summary>
    public long DisplayType;

    @Override
    public String GetApiName()
    {
        return "butler.guild.get.list";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("page_index", String.valueOf(PageIndex));
        map.put("page_count", String.valueOf(PageCount));
        map.put("filter_field", String.valueOf(FilterField));
        map.put("filter_type", String.valueOf(FilterType));
        map.put("display_type", String.valueOf(DisplayType));
    }
}
